qinglan.Canvas.SpriteInterface = qinglan.Canvas.RenderInterface.extend(function(){
	
	this.width = 0;
	this.height = 0;
	this.rotation = 0;
	this.alpha = 1;
	this.scaleX = 1;
	this.scaleY = 1;
	this.zIndex = 0;
	this.translateCenter = false;
	this.position = new qinglan.Canvas.Vector2(0, 0);
	this.shadowColor = new qinglan.Canvas.Color(0,0,0,0);
	this.shadowOffsetX = 0;
	this.shadowOffsetY = 0;
	this.shadowBlur = 0;

}).methods({
	getStyle: function(style){
		return this[style] || qinglan.Namespace.get(style,this);
	},
	setStyle: function(style, value){
		if (style.indexOf('.') > -1) {
			style = style.split('.');
			var key = style.pop();
			var attr = qinglan.Namespace.get(style.join('.'),this);
			attr[key] = value;
		} else{
			this[style] = value;
		}
	}
});
